#ifndef __MYDIALOG_h__
#define __MYDIALOG_h__

/*
============================================================================
 Name        : MyDialog.h
 Author      : 
 Copyright   : Your copyright notice
 Description : Declares view class for application.
============================================================================
*/

// INCLUDES
#include <eikcapc.h>
#include <eikdialg.h> 
// CLASS DECLARATION

class MyDlgContainer;
class CEikRichTextEditor;
class MyTest;

class MyRichEditor;

class MyDialog : public CEikDialog
{
public: // New methods

        static MyDialog* NewL( const TRect& aRect );
        static MyDialog* NewLC( const TRect& aRect );

        ~MyDialog();

public:
	// from base class CCoeControl
	TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent,TEventCode aType );	
		
public:  // Functions from base classes
////        virtual void SizeChanged();
protected: 
		void PreLayoutDynInitL(); 
		void PostLayoutDynInitL();
		void SetSizeAndPosition(const TSize &  aSize);
private: // Constructors
        void ConstructL(const TRect& aRect);
		SEikControlInfo CreateCustomControlL(TInt aControlType);
        MyDialog();
public:
		bool Execute(const TDesC& command);
		bool InfoMsg(const TDesC& page, const TDesC& title, const TDesC& value);
		bool ExecuteWithoutLoad();
		void PreloadPage(const TDesC& resname);
		
		MyRichEditor* RichEditor();
		HBufC* GetPrompt();
private:
    	TRect iClientRect;
};

#endif
